﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.Specialized;
using AspNetCs.Enumerations;

namespace AspNetCs.IDAL
{
    public interface IUserSaveType_Property
    {

        /// <summary>
        /// 获取登录后的用户名
        /// </summary>
        string GetUserName { get; }
        /// <summary>
        /// 获取登录后的Email
        /// </summary>
        string GetEmail { get; }
        /// <summary>
        /// 获取登录后的用户ID
        /// </summary>
        int GetUserID { get; }
        /// <summary>
        /// 用户登录写入COOKIES或者SESSION的保存信息
        /// </summary>
        /// <param name="ValueArry"></param>
        /// <param name="ExpTime"></param>
        void WriteUserInfo(NameValueCollection ValueArry, int ExpTime);
        /// <summary>
        /// 用户退出
        /// </summary>
        void UserExit();
        /// <summary>
        /// 权限{用户，管理员，代理商}
        /// </summary>
        UserTypeEnum GetPurview { get; }

    }
}
